# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-libacl
_pkgname=pylibacl
pkgver=0.7.0
pkgrel=0
pkgdesc="A python module for manipulating ACLs"
url="https://pylibacl.k1024.org/"
arch="all"
license="LGPL-2.0-or-later"
makedepends="py3-setuptools python3-dev acl-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-libacl" # Backwards compatibility
provides="py-libacl=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --root="$pkgdir"
}

sha512sums="
077515a00c7a048faf7792acd9c3e768d35674c0b3f4ec72fdf37561c90ed12bb392582a4fb9a23b7916db3375278c2636f2844f362a8335e7ad68e1e9b9c3bd  pylibacl-0.7.0.tar.gz
"
